using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Indeco.G24.Website.UserControls
{
    public partial class RssReader : System.Web.UI.UserControl
    {
        private string rssUrl = "";
        /// <summary>
        /// RssUrl Properties
        /// </summary>
        public string RssUrl
        {
            get
            {
                return rssUrl;
            }
            set
            {
                rssUrl = value;
            }
        }
        private int rssMaxItems = 10;
        /// <summary>
        /// RssMaxItems Properties
        /// </summary>
        public int RssMaxItems
        {
            get
            {
                return rssMaxItems;
            }
            set
            {
                rssMaxItems = value;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            rssDataSource.MaxItems = rssMaxItems;
            rssDataSource.Url = rssUrl;
        }
    }
}